home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zoom 2
/
Zoom - Release 2 (1996)(Active Software)[!].iso
/
texts
/
dosman121
/
man
/
type
< prev
next >
Wrap
Text File
|
1995-04-04
|
3KB
|
95 lines
Type (V1.3, 2.x, 3.x in C:)
NAME
Type - Type a file, possibly with line numbers or in
hex.
SYNOPSIS
Type [FROM] fromname [[TO] toname]
[OPT N=NUMBER / OPT H=HEX]
DESCRIPTION
Type displays a file on the current window, or, if a
TO argument is supplied, to a file. With the 2.3/3.x
version of Type, you can type many files with one TYPE
command, and use wildcards as well. Note that due to
this enhancement of Type it is possible to dispense with
Join, since Type can do Join's job as well as its own.
Although you can view a file with Type, you are also
able to copy a file with it. It can format its output as
hex number or include line numbers at the beginning of
each line.
If you use Type without a filename, it will read from
its standard input. This allows you to use Type in a
pipeline, or to send keyboard input to a device (such as
a printer) or a file. To terminate an interactive session
with Type, use Ctrl-\. To pause the output hit the space
bar. Resume the output by pressing the Ctrl-x. The output
may be cancelled with the Ctrl-C.
OPTIONS
FROM fromname
The name of the file you want displayed. Fromname can
be any valid Amiga file. The FROM keyword is optional if
the fromname immediatly follows the command. 2.x/3.x lets
you TYPE many files.
NOTE: ONLY 'OPT N' OR 'OPT H' MAY BE SPECIFIED ONE AT
A TIME NOT BOTH AT THE SAME TIME.
HEX or OPT H
This displays the file(s) in hexadecimal.
NUMBER or OPT N
This displays the file(s) with line numbers. AmigaDOS
will treat any number of characters within a file ending
with a linefeed as one line.
TO file
The TO option lets you select a destination file
instead of typing to the console. Note that with the
2.x/3.x TYPE, you must explicitly specify the TO keyword,
unlike the 1.3 TYPE. Under 2.x/3.x a second filename will
be presumed to be another fromname if the TO keyword is
not specified. Since 1.3 cannot display multiple files
with one TYPE command then the TO keyword isn't needed if
the toname directly follows the fromname.
If TO is not specified, the TYPE is output to the
screen. toname may be any kind of AmigaDOS file or device
(such as prt:). It cannot be a directory, however. If you
specify a directory with something in it, TYPE will fail.
If toname is an empty directory then the directory will
be deleted and replaced with the typed file.
EXAMPLE
1. To Type a binary file in hex.
Type WORK:ThisFile.bin OPT H
2. To Type the contents of a text file to the screen:
Type this.txt
3. To copy a file named this.txt to another directory:
Type Work:Docs/this.txt Work:MoreDocs/this.txt
4. Dump a text file to the printer with line numbers:
Type Work:this.txt to PRT: Opt N